// 遂宁观音湖景区真实POI数据
// 基于观音湖实际地理布局，湖面呈东西走向狭长形状

export const poiData = [
  // 核心景点 - 三圣岛（湖心岛）
  {
    id: 'poi_001',
    name: '三圣岛',
    type: 'scenic',
    position: { x: 50, y: 2, z: 0 }, // 湖中心位置
    coordinates: { lat: 30.5333, lng: 105.5921 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 245,
      capacity: 800,
      temperature: 24,
      humidity: 68,
      description: '观音湖最大的湖心岛，岛上有观音圣像等景观'
    }
  },

  // 宗教文化景点
  {
    id: 'poi_002',
    name: '灵泉寺',
    type: 'scenic',
    position: { x: 75, y: 8, z: 15 }, // 东侧山坡
    coordinates: { lat: 30.5298, lng: 105.6012 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 189,
      capacity: 500,
      temperature: 23,
      humidity: 70,
      description: '千年古刹，观音文化发源地'
    }
  },

  {
    id: 'poi_003',
    name: '广德寺',
    type: 'scenic',
    position: { x: 25, y: 12, z: 20 }, // 西侧山坡
    coordinates: { lat: 30.5412, lng: 105.5654 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 156,
      capacity: 400,
      temperature: 22,
      humidity: 72,
      description: '克幢禅师道场，全国重点文物保护单位'
    }
  },

  // 湖面景观
  {
    id: 'poi_004',
    name: '莲花岛',
    type: 'scenic',
    position: { x: 35, y: 1, z: -8 }, // 湖中小岛
    coordinates: { lat: 30.5301, lng: 105.5789 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 78,
      capacity: 200,
      temperature: 25,
      humidity: 75,
      description: '湖中小岛，以莲花景观著称'
    }
  },

  {
    id: 'poi_005',
    name: '观音湖湿地公园',
    type: 'scenic',
    position: { x: 15, y: 0, z: -15 }, // 西南湖岸
    coordinates: { lat: 30.5245, lng: 105.5598 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 312,
      capacity: 1000,
      temperature: 24,
      humidity: 78,
      description: '生态湿地景观，鸟类栖息地'
    }
  },

  // 桥梁和交通要道
  {
    id: 'poi_006',
    name: '观音湖大桥',
    type: 'entrance',
    position: { x: 60, y: 5, z: 0 }, // 跨湖大桥
    coordinates: { lat: 30.5355, lng: 105.5945 },
    status: 'active',
    isAlert: false,
    data: {
      dailyTraffic: 8450,
      currentFlow: 156,
      peakHour: '18:00-19:00',
      description: '连接南北两岸的主要桥梁'
    }
  },

  {
    id: 'poi_007',
    name: '涪江二桥',
    type: 'entrance',
    position: { x: 85, y: 3, z: 5 }, // 东侧桥梁
    coordinates: { lat: 30.5387, lng: 105.6089 },
    status: 'active',
    isAlert: false,
    data: {
      dailyTraffic: 6230,
      currentFlow: 89,
      peakHour: '17:30-18:30',
      description: '东部重要交通枢纽'
    }
  },

  // 监控系统
  {
    id: 'poi_008',
    name: '三圣岛监控中心',
    type: 'monitor',
    position: { x: 52, y: 4, z: 2 }, // 三圣岛制高点
    coordinates: { lat: 30.5338, lng: 105.5925 },
    status: 'active',
    isAlert: false,
    data: {
      deviceType: '360°全景摄像头',
      resolution: '4K',
      coverage: '环岛全景',
      videoUrl: '/videos/sansheng-island.mp4',
      description: '三圣岛全景监控'
    }
  },

  {
    id: 'poi_009',
    name: '湖面水质监测站',
    type: 'monitor',
    position: { x: 40, y: 0.5, z: -5 }, // 湖面浮标
    coordinates: { lat: 30.5289, lng: 105.5834 },
    status: 'active',
    isAlert: false,
    data: {
      deviceType: '水质监测浮标',
      waterQuality: '优',
      ph: 7.2,
      dissolvedOxygen: '8.5mg/L',
      description: '实时水质监测'
    }
  },

  {
    id: 'poi_010',
    name: '灵泉寺安防监控',
    type: 'monitor',
    position: { x: 77, y: 10, z: 17 }, // 灵泉寺入口
    coordinates: { lat: 30.5303, lng: 105.6018 },
    status: 'active',
    isAlert: true,
    data: {
      deviceType: '智能安防摄像头',
      resolution: '2K',
      coverage: '寺庙入口',
      alertType: '人流密集',
      videoUrl: '/videos/lingquan-temple.mp4',
      description: '寺庙安全监控'
    }
  },

  // 住宿设施
  {
    id: 'poi_011',
    name: '观音湖度假酒店',
    type: 'accommodation',
    position: { x: 65, y: 3, z: -12 }, // 湖北岸
    coordinates: { lat: 30.5398, lng: 105.5967 },
    status: 'active',
    isAlert: false,
    data: {
      totalRooms: 180,
      occupiedRooms: 142,
      occupancyRate: 78.9,
      averagePrice: 468,
      starRating: 4,
      description: '湖景度假酒店'
    }
  },

  {
    id: 'poi_012',
    name: '禅修客栈',
    type: 'accommodation',
    position: { x: 28, y: 8, z: 18 }, // 广德寺附近
    coordinates: { lat: 30.5425, lng: 105.5671 },
    status: 'active',
    isAlert: false,
    data: {
      totalRooms: 45,
      occupiedRooms: 23,
      occupancyRate: 51.1,
      averagePrice: 288,
      starRating: 3,
      description: '禅文化主题客栈'
    }
  },

  // 餐饮服务
  {
    id: 'poi_013',
    name: '湖心素食餐厅',
    type: 'dining',
    position: { x: 48, y: 3, z: -2 }, // 三圣岛
    coordinates: { lat: 30.5328, lng: 105.5915 },
    status: 'active',
    isAlert: false,
    data: {
      totalSeats: 120,
      currentGuests: 67,
      occupancyRate: 55.8,
      specialties: ['观音素斋', '湖鲜料理'],
      averagePrice: 88,
      description: '岛上特色素食餐厅'
    }
  },

  {
    id: 'poi_014',
    name: '涪江渔家乐',
    type: 'dining',
    position: { x: 20, y: 1, z: -20 }, // 西南湖岸
    coordinates: { lat: 30.5234, lng: 105.5567 },
    status: 'active',
    isAlert: false,
    data: {
      totalSeats: 200,
      currentGuests: 145,
      occupancyRate: 72.5,
      specialties: ['河鲜火锅', '当地土菜'],
      averagePrice: 126,
      description: '湖岸特色渔家乐'
    }
  },

  // 商业设施
  {
    id: 'poi_015',
    name: '观音文化商业街',
    type: 'shopping',
    position: { x: 45, y: 1, z: 12 }, // 湖北岸商业区
    coordinates: { lat: 30.5378, lng: 105.5889 },
    status: 'active',
    isAlert: false,
    data: {
      totalShops: 56,
      openShops: 52,
      footTraffic: 1256,
      peakHours: '10:00-16:00',
      products: ['佛教用品', '本地特产', '文创产品'],
      description: '观音文化主题商业街'
    }
  },

  {
    id: 'poi_016',
    name: '湖景纪念品店',
    type: 'shopping',
    position: { x: 55, y: 2, z: 8 }, // 观音湖大桥附近
    coordinates: { lat: 30.5362, lng: 105.5934 },
    status: 'active',
    isAlert: false,
    data: {
      totalShops: 12,
      openShops: 11,
      footTraffic: 489,
      peakHours: '14:00-18:00',
      products: ['观音湖纪念品', '明信片', '特色小食'],
      description: '湖景旅游纪念品'
    }
  },

  // 公共服务设施
  {
    id: 'poi_017',
    name: '景区游客服务中心',
    type: 'service',
    position: { x: 42, y: 1, z: 15 }, // 主入口区域
    coordinates: { lat: 30.5389, lng: 105.5856 },
    status: 'active',
    isAlert: false,
    data: {
      facilities: ['导览服务', '票务中心', '医疗点', '失物招领'],
      operatingHours: '08:00-18:00',
      staff: 15,
      dailyVisitors: 2340,
      description: '景区综合服务中心'
    }
  },

  {
    id: 'poi_018',
    name: '湖心岛码头',
    type: 'service',
    position: { x: 46, y: 0, z: -6 }, // 三圣岛码头
    coordinates: { lat: 30.5318, lng: 105.5908 },
    status: 'active',
    isAlert: false,
    data: {
      facilities: ['游船服务', '救生设备', '候船厅'],
      boatCapacity: 8,
      availableBoats: 6,
      waitingTime: '10分钟',
      dailyTrips: 156,
      description: '连接三圣岛的水上交通'
    }
  },

  {
    id: 'poi_019',
    name: '生态停车场',
    type: 'service',
    position: { x: 35, y: 0, z: 25 }, // 主入口停车区
    coordinates: { lat: 30.5421, lng: 105.5798 },
    status: 'active',
    isAlert: false,
    data: {
      facilities: ['生态停车', '电动车充电', '自行车租赁'],
      totalSpaces: 500,
      occupiedSpaces: 367,
      occupancyRate: 73.4,
      hourlyRate: 5,
      description: '景区主停车场'
    }
  },

  // 文化展示区
  {
    id: 'poi_020',
    name: '观音文化博物馆',
    type: 'scenic',
    position: { x: 38, y: 4, z: 10 }, // 湖北岸文化区
    coordinates: { lat: 30.5395, lng: 105.5823 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 134,
      capacity: 300,
      exhibits: ['观音文化历史', '佛教艺术', '遂宁文化'],
      openHours: '09:00-17:00',
      description: '观音文化主题博物馆'
    }
  },

  // 生态景观点
  {
    id: 'poi_021',
    name: '荷花观景台',
    type: 'scenic',
    position: { x: 25, y: 2, z: -10 }, // 西侧荷花池
    coordinates: { lat: 30.5267, lng: 105.5678 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 89,
      capacity: 150,
      bestViewTime: '06:00-08:00',
      flowerStatus: '盛开期',
      description: '荷花主题观景区'
    }
  },

  {
    id: 'poi_022',
    name: '五彩缤纷路',
    type: 'scenic',
    position: { x: 30, y: 1, z: 8 }, // 环湖景观大道
    coordinates: { lat: 30.5356, lng: 105.5745 },
    status: 'active',
    isAlert: false,
    data: {
      currentVisitors: 445,
      pathLength: '2.3公里',
      walkingTime: '30分钟',
      features: ['彩色路面', '湖景步道', '休憩亭台'],
      description: '环湖彩色景观步道'
    }
  },

  // 水上活动区
  {
    id: 'poi_023',
    name: '游船码头',
    type: 'service',
    position: { x: 58, y: 0, z: -8 }, // 东岸游船区
    coordinates: { lat: 30.5345, lng: 105.5956 },
    status: 'active',
    isAlert: false,
    data: {
      facilities: ['观光游船', '画舫', '快艇'],
      totalBoats: 12,
      activeBoats: 8,
      waitingTime: '15分钟',
      routes: ['环湖游', '三圣岛专线'],
      description: '湖面游船服务'
    }
  },

  // 新增监控点位
  {
    id: 'poi_024',
    name: '广德寺山门监控',
    type: 'monitor',
    position: { x: 26, y: 9, z: 22 }, // 广德寺入口
    coordinates: { lat: 30.5418, lng: 105.5661 },
    status: 'active',
    isAlert: false,
    data: {
      deviceType: '高清球机',
      resolution: '4K',
      coverage: '寺庙山门',
      nightVision: true,
      videoUrl: '/videos/guangde-temple.mp4',
      description: '广德寺安全监控'
    }
  },

  {
    id: 'poi_025',
    name: '湖心观景台监控',
    type: 'monitor',
    position: { x: 51, y: 6, z: 1 }, // 三圣岛观景台
    coordinates: { lat: 30.5341, lng: 105.5929 },
    status: 'active',
    isAlert: false,
    data: {
      deviceType: '云台摄像机',
      resolution: '2K',
      coverage: '湖面全景',
      weatherProof: true,
      videoUrl: '/videos/lake-view.mp4',
      description: '湖心全景监控'
    }
  }
]

// POI类型配置
export const poiTypes = {
  all: {
    label: '全部显示',
    color: '#ffffff',
    icon: 'M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z'
  },
  scenic: {
    label: '景区景点',
    color: '#ff6b35',
    icon: 'M12,2L13.09,8.26L17,7L14.94,9.06L19,12L14.94,14.94L17,17L13.09,15.74L12,22L10.91,15.74L7,17L9.06,14.94L5,12L9.06,9.06L7,7L10.91,8.26L12,2Z'
  },
  monitor: {
    label: '监控设备',
    color: '#4fc3f7',
    icon: 'M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16V20A1,1 0 0,1 15,21H9A1,1 0 0,1 8,20V18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M4,4V16H20V4H4M5,5H19A1,1 0 0,1 20,6V15A1,1 0 0,1 19,16H5A1,1 0 0,1 4,15V6A1,1 0 0,1 5,5Z'
  },
  entrance: {
    label: '出入口',
    color: '#66bb6a',
    icon: 'M11,13H5V11H11L7.5,7.5L8.92,6.08L15.84,13L8.92,19.92L7.5,18.5L11,15H5V13H11Z'
  },
  accommodation: {
    label: '住宿服务',
    color: '#ab47bc',
    icon: 'M12,3L20,9V21H15V14H9V21H4V9L12,3Z'
  },
  dining: {
    label: '餐饮美食',
    color: '#ff7043',
    icon: 'M18.06 22.99H1.94C1.94 22.99 1.94 22.99 1.94 22.99H18.06Z'
  },
  service: {
    label: '公共服务',
    color: '#29b6f6',
    icon: 'M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2Z'
  },
  shopping: {
    label: '购物商业',
    color: '#ffa726',
    icon: 'M17,18C17.56,18 18,18.44 18,19C18,19.56 17.56,20 17,20C16.44,20 16,19.56 16,19C16,18.44 16.44,18 17,18Z'
  }
}

// 观音湖地理轮廓数据（真实形状）
export const lakeOutline = [
  // 西端起点（湿地公园）
  { x: 10, z: -18 },
  { x: 15, z: -22 },
  { x: 22, z: -20 },
  
  // 西南岸线
  { x: 28, z: -18 },
  { x: 35, z: -15 },
  { x: 42, z: -12 },
  
  // 南岸（三圣岛南侧）
  { x: 48, z: -10 },
  { x: 55, z: -8 },
  { x: 62, z: -6 },
  
  // 东端
  { x: 70, z: -4 },
  { x: 75, z: -2 },
  { x: 78, z: 0 },
  { x: 75, z: 2 },
  { x: 70, z: 4 },
  
  // 北岸
  { x: 62, z: 6 },
  { x: 55, z: 8 },
  { x: 48, z: 10 },
  
  // 北岸（三圣岛北侧）
  { x: 42, z: 12 },
  { x: 35, z: 15 },
  { x: 28, z: 18 },
  
  // 西北岸线
  { x: 22, z: 20 },
  { x: 15, z: 22 },
  { x: 10, z: 18 },
  { x: 8, z: 12 },
  { x: 6, z: 5 },
  { x: 8, z: -2 },
  { x: 10, z: -8 },
  { x: 10, z: -18 } // 闭合轮廓
]

// 地理高程数据
export const terrainHeights = {
  // 灵泉寺区域（东部山地）
  lingquanArea: { center: { x: 75, z: 15 }, radius: 8, maxHeight: 15 },
  // 广德寺区域（西部山地）
  guangdeArea: { center: { x: 25, z: 20 }, radius: 6, maxHeight: 18 },
  // 湖心岛屿
  sanshengIsland: { center: { x: 50, z: 0 }, radius: 4, maxHeight: 3 },
  lianhuaIsland: { center: { x: 35, z: -8 }, radius: 2, maxHeight: 2 },
  // 商业区缓坡
  businessArea: { center: { x: 45, z: 12 }, radius: 5, maxHeight: 2 }
} 